import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

public class Helper {
	
    public JSONObject getConfContent()
    {
    	JSONParser jParser = new JSONParser();
		InputStream pscfgStream = this.getClass().getClassLoader().getResourceAsStream("config.json");
		Object confobj;
		try {
			confobj = jParser.parse( new InputStreamReader(pscfgStream));

            JSONObject confjsonObject =  (JSONObject) confobj;
            return confjsonObject;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			return null;
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			return null;
		}
    }

}
